-- GENERATED SPELL FOR [Mariner Swiftstar] --


function spell0_24997(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24997', 5332, 1)
end

function Sorts_24997(pUnit, Event)
local choix_sorts_24997 = math.random(0, 0)
if choix_sorts_24997 == 0 then
pUnit:RegisterEvent('spell0_24997', 1, 1)
end
end

function mob24997_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24997', math.random(1500, 3000), 1)
end

function mob24997_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24997_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24997_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24997, 1, 'mob24997_Action')
RegisterUnitEvent(24997, 2, 'mob24997_Leave')
RegisterUnitEvent(24997, 3, 'mob24997_Kill')
RegisterUnitEvent(24997, 4, 'mob24997_Die')
